
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  menuWidth: 150,
  align: 'center',
  refreshBtn: true,
  showClomnuBtn: false,
  searchSize: 'mini',
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn: true,
  menuWidth: 100,
  selection: true,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [{
    label: '类型',
    prop: 'type',
    type: 'select',
    dicUrl: '/admin/dict/type/log_type',
    search: true
  }, {
    label: '标题',
    prop: 'title',
    search: true
  }, {
    "type": "select",
    "label": "线路名称",
    "prop": "createByLineCode",
    cascaderItem: ["createByStationCode"],
    props: {
      label: 'name',
      value: 'code'
    },
    search: true,
    dicUrl: "/support/swparamline/dict",
  }, {
    "type": "select",
    "label": "车站名称",
    "prop": "createByStationCode",
    props: {
      label: 'name',
      value: 'code'
    },
    dicFlag: false,
    search: true,
    dicUrl: `/support/swparamstation/dict/{{key}}`,
  }, {
    "type": "input",
    "label": "用户名称",
    "prop": "createByName",
    "search": true
  }, {
    "type": "input",
    "label": "用户工号",
    "prop": "createBy",
    "search": true
  },  {
    label: '所属部门',
    prop: 'createByDeptId',
    type: 'tree',
    slot: true,
    dataType:"number",
    rules: [{
      required: true,
      message: '请选择部门',
      trigger: 'change'
    }],
    dicUrl: '/admin/dept/tree',
    props: {
      label: 'name',
      value: 'id',
      res: 'data'
    },
    disabled: true,
    //value: store.getters.userInfo.deptId
  },{
    label: 'IP地址',
    prop: 'remoteAddr'
  }, {
    label: '请求方式',
    prop: 'method'
  }, {
    label: '客户端',
    prop: 'serviceId'
  }, {
    width: 80,
    label: '请求时间',
    prop: 'time'
  }, {
    width: 150,
    label: '创建时间',
    prop: 'createTime',
    type: 'datetime',
    format: 'yyyy-MM-dd HH:mm',
    valueFormat: 'yyyy-MM-dd HH:mm:ss',
    search: true,
    searchSpan: 12,
    searchRange: true
  }]
}
